import { reactive, ref } from "vue";

export default function InitHook() {
  const tableRef = ref<any>(null);
  const searchForm = reactive<{ pageNum: number; pageSize: number; total: number; beforePageNum: number }>({
    beforePageNum: 0,
    pageNum: 1,
    pageSize: 100,
    total: 0
  });
  const tableData = ref<Array<DepositRegister.ListRows>>([]);
  return {
    searchForm,
    tableData,
    tableRef
  };
}
